package com.ruoyi.project.system.erp.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class ContractResult {


    /**
     * state : 1
     * data : {"result":[{"contract_id":"TEST104941","contract_name":"采购合同","contract_code":"TEST104941","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":1},{"contract_id":"TEST104942","contract_name":"采购合同","contract_code":"TEST104942","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":2},{"contract_id":"TEST104943","contract_name":"采购合同","contract_code":"TEST104943","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":3},{"contract_id":"TEST104944","contract_name":"采购合同","contract_code":"TEST104944","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":4},{"contract_id":"TEST1049410","contract_name":"采购合同","contract_code":"TEST1049410","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":5},{"contract_id":"TEST104946","contract_name":"采购合同","contract_code":"TEST104946","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":6},{"contract_id":"TEST104947","contract_name":"采购合同","contract_code":"TEST104947","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":7},{"contract_id":"TEST104948","contract_name":"采购合同","contract_code":"TEST104948","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":8},{"contract_id":"TEST104949","contract_name":"采购合同","contract_code":"TEST104949","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":9},{"contract_id":"TEST104945","contract_name":"采购合同","contract_code":"TEST104945","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":10}],"row_total":10,"page_size":10,"current_page":1}
     * msg : 成功
     * ext : {}
     */

    @JSONField(name = "state")
    private int state;
    @JSONField(name = "data")
    private DataBean data;
    @JSONField(name = "msg")
    private String msg;
    @JSONField(name = "ext")
    private ExtBean ext;


    @NoArgsConstructor
    @Data
    public static class DataBean {
        /**
         * result : [{"contract_id":"TEST104941","contract_name":"采购合同","contract_code":"TEST104941","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":1},{"contract_id":"TEST104942","contract_name":"采购合同","contract_code":"TEST104942","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":2},{"contract_id":"TEST104943","contract_name":"采购合同","contract_code":"TEST104943","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":3},{"contract_id":"TEST104944","contract_name":"采购合同","contract_code":"TEST104944","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":4},{"contract_id":"TEST1049410","contract_name":"采购合同","contract_code":"TEST1049410","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":5},{"contract_id":"TEST104946","contract_name":"采购合同","contract_code":"TEST104946","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":6},{"contract_id":"TEST104947","contract_name":"采购合同","contract_code":"TEST104947","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":7},{"contract_id":"TEST104948","contract_name":"采购合同","contract_code":"TEST104948","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":8},{"contract_id":"TEST104949","contract_name":"采购合同","contract_code":"TEST104949","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":9},{"contract_id":"TEST104945","contract_name":"采购合同","contract_code":"TEST104945","unit_name":"广东电网有限责任公司江门供电局","contacts_name":"张三","contacts_phone":"13526905271","contract_type":1,"project_code":"20200316","project_name":"采购项目","contract_amount":600000,"prepayment_ratio":20,"deposit_ratio":10,"payment_arrival_ratio":60,"bond_ratio":10,"purchase_id":"20200316","supply_duration":null,"bidding_proportion":null,"quota_allocation":null,"technical_agreement_number":null,"jssj":20200316,"rownum_":10}]
         * row_total : 10
         * page_size : 10
         * current_page : 1
         */

        @JSONField(name = "row_total")
        private int rowTotal;
        @JSONField(name = "page_size")
        private int pageSize;
        @JSONField(name = "current_page")
        private int currentPage;
        @JSONField(name = "result")
        private List<ResultBean> result;


        @NoArgsConstructor
        @Data
        public static class ResultBean {
            /**
             * contract_id : TEST104941
             * contract_name : 采购合同
             * contract_code : TEST104941
             * unit_name : 广东电网有限责任公司江门供电局
             * contacts_name : 张三
             * contacts_phone : 13526905271
             * contract_type : 1
             * project_code : 20200316
             * project_name : 采购项目
             * contract_amount : 600000
             * prepayment_ratio : 20
             * deposit_ratio : 10
             * payment_arrival_ratio : 60
             * bond_ratio : 10
             * purchase_id : 20200316
             * supply_duration : null
             * bidding_proportion : null
             * quota_allocation : null
             * technical_agreement_number : null
             * jssj : 20200316
             * rownum_ : 1
             */

            @JSONField(name = "contract_id")
            private String contractId;
            @JSONField(name = "contract_name")
            private String contractName;
            @JSONField(name = "contract_code")
            private String contractCode;
            @JSONField(name = "unit_name")
            private String unitName;
            @JSONField(name = "contacts_name")
            private String contactsName;
            @JSONField(name = "contacts_phone")
            private String contactsPhone;
            @JSONField(name = "contract_type")
            private int contractType;
            @JSONField(name = "project_code")
            private String projectCode;
            @JSONField(name = "project_name")
            private String projectName;
            @JSONField(name = "contract_amount")
            private int contractAmount;
            @JSONField(name = "prepayment_ratio")
            private int prepaymentRatio;
            @JSONField(name = "deposit_ratio")
            private int depositRatio;
            @JSONField(name = "payment_arrival_ratio")
            private int paymentArrivalRatio;
            @JSONField(name = "bond_ratio")
            private int bondRatio;
            @JSONField(name = "purchase_id")
            private String purchaseId;
            @JSONField(name = "supply_duration")
            private Object supplyDuration;
            @JSONField(name = "bidding_proportion")
            private Object biddingProportion;
            @JSONField(name = "quota_allocation")
            private Object quotaAllocation;
            @JSONField(name = "technical_agreement_number")
            private Object technicalAgreementNumber;
            @JSONField(name = "jssj")
            private int jssj;
            @JSONField(name = "rownum_")
            private int rownum;

        }
    }

    @NoArgsConstructor
    @Data
    public static class ExtBean {
    }
}
